﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entities
{
    public class Department
    {
        //当属性名称id ID或者类名+ID时，缺省将其看成是所映射的数据库表的PK（主键）

        //主键ID
        public Guid DepartmentID { get; set; }
        //部门名称
        public string Name { get; set; }
        //部门建立时间
        public DateTime CreateDateTime { get; set; }

        public string Descn { get; set; }

        public Department()
        {
            DepartmentID = Guid.NewGuid();
        }
    }
}
